<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>InFact: infact::VarMap&lt; vector&lt; T &gt; &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">InFact
   
   </div>
   <div id="projectbrief">Interpreter and factory for easily creating C++ objects at run-time</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceinfact.html">infact</a>      </li>
      <li class="navelem"><a class="el" href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html">VarMap&lt; vector&lt; T &gt; &gt;</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">infact::VarMap&lt; vector&lt; T &gt; &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="infact::VarMap&lt; vector&lt; T &gt; &gt;" --><!-- doxytag: inherits="VarMapImpl&lt; vector&lt; T &gt;, VarMap&lt; vector&lt; T &gt; &gt; &gt;" -->
<p>A partial specialization to allow initialization of a vector of values, where the values can either be literals (if T is a primitive type), spec strings for constructing <a class="el" href="classinfact_1_1_factory.html">Factory</a>-constructible objects, or variable names (where each variable must be of type T).  
 <a href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="environment_8h_source.html">environment.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for infact::VarMap&lt; vector&lt; T &gt; &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.png" usemap="#infact::VarMap&lt; vector&lt; T &gt; &gt;_map" alt=""/>
  <map id="infact::VarMap&lt; vector&lt; T &gt; &gt;_map" name="infact::VarMap&lt; vector&lt; T &gt; &gt;_map">
<area href="classinfact_1_1_var_map_impl.html" alt="infact::VarMapImpl&lt; vector&lt; T &gt;, VarMap&lt; vector&lt; T &gt; &gt; &gt;" shape="rect" coords="0,56,354,80"/>
<area href="classinfact_1_1_var_map_base.html" title="A base class for a mapping from variables of a specific type to their values." alt="infact::VarMapBase" shape="rect" coords="0,0,354,24"/>
</map>
 </div></div>

<p><a href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classinfact_1_1_var_map_impl.html">VarMapImpl</a>&lt; vector&lt; T &gt;<br class="typebreak"/>
, <a class="el" href="classinfact_1_1_var_map.html">VarMap</a>&lt; vector&lt; T &gt; &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html#a4ef89c32b47c209f4dc6ead48a184554">Base</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html#a108dad6212a87c3784f84c8605a227bd">VarMap</a> (const string &amp;name, const string &amp;element_typename, <a class="el" href="classinfact_1_1_environment.html">Environment</a> *<a class="el" href="classinfact_1_1_var_map_impl.html#a08a42daedfe77f8a3b80bdc59c1c0754">env</a>, bool is_primitive=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a mapping from variables of a particular type to their values.  <a href="#a108dad6212a87c3784f84c8605a227bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html#ab98f9f38dd7de0f59cee9dfd52863979">~VarMap</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html#ab04d2c8b1800f38e8f3a469fa5bb3e22">ReadAndSet</a> (const string &amp;varname, <a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;st)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the next value (primitive or spec for constructing a <a class="el" href="classinfact_1_1_factory.html">Factory</a>-constructible object) from the specified stream tokenizer and sets the specified variable to that value.  <a href="#ab04d2c8b1800f38e8f3a469fa5bb3e22"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br/>
class infact::VarMap&lt; vector&lt; T &gt; &gt;</h3>

<p>A partial specialization to allow initialization of a vector of values, where the values can either be literals (if T is a primitive type), spec strings for constructing <a class="el" href="classinfact_1_1_factory.html">Factory</a>-constructible objects, or variable names (where each variable must be of type T). </p>
<p>TODO(dbikel): Avoid repeating much of the unchanged implementation from the non-specialized VarMap&lt;T&gt;, above, by using the PIMPL design pattern (i.e., create VarMapImpl&lt;T&gt; that does the generic stuff and have VarMap&lt;T&gt; contain a VarMapImpl&lt;T&gt; data member, and have <a class="el" href="classinfact_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a>&lt;vector&lt;T&gt;&gt; contain a <a class="el" href="classinfact_1_1_var_map_impl.html" title="A partial implementation of the VarMapBase interface that is common to both VarMap&lt;T&gt; and the VarMap&lt;...">VarMapImpl</a>&lt;vector&lt;T&gt;&gt; data member.</p>
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
  <table class="">
    <tr><td class="paramname">T</td><td>the element type for vectors stored in this variable map </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00440">440</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a4ef89c32b47c209f4dc6ead48a184554"></a><!-- doxytag: member="infact::VarMap&lt; vector&lt; T &gt; &gt;::Base" ref="a4ef89c32b47c209f4dc6ead48a184554" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classinfact_1_1_var_map_impl.html">VarMapImpl</a>&lt;vector&lt;T&gt;, <a class="el" href="classinfact_1_1_var_map.html">VarMap</a>&lt;vector&lt;T&gt; &gt; &gt; <a class="el" href="classinfact_1_1_var_map.html">infact::VarMap</a>&lt; vector&lt; T &gt; &gt;::<a class="el" href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html#a4ef89c32b47c209f4dc6ead48a184554">Base</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="environment_8h_source.html#l00442">442</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a108dad6212a87c3784f84c8605a227bd"></a><!-- doxytag: member="infact::VarMap&lt; vector&lt; T &gt; &gt;::VarMap" ref="a108dad6212a87c3784f84c8605a227bd" args="(const string &amp;name, const string &amp;element_typename, Environment *env, bool is_primitive=true)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classinfact_1_1_var_map.html">infact::VarMap</a>&lt; vector&lt; T &gt; &gt;::<a class="el" href="classinfact_1_1_var_map.html">VarMap</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>element_typename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classinfact_1_1_environment.html">Environment</a> *&#160;</td>
          <td class="paramname"><em>env</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>is_primitive</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a mapping from variables of a particular type to their values. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>the type name of the variables in this instance </td></tr>
    <tr><td class="paramname">element_typename</td><td>the type name of the elements of the vectors held by this instance </td></tr>
    <tr><td class="paramname">env</td><td>the <a class="el" href="classinfact_1_1_environment.html">Environment </a> that contains this <a class="el" href="classinfact_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a> instance </td></tr>
    <tr><td class="paramname">is_primitive</td><td>whether the variables held in this variable map are primitives or vectors of primitives </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00453">453</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab98f9f38dd7de0f59cee9dfd52863979"></a><!-- doxytag: member="infact::VarMap&lt; vector&lt; T &gt; &gt;::~VarMap" ref="ab98f9f38dd7de0f59cee9dfd52863979" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classinfact_1_1_var_map.html">infact::VarMap</a>&lt; vector&lt; T &gt; &gt;::~<a class="el" href="classinfact_1_1_var_map.html">VarMap</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="environment_8h_source.html#l00457">457</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab04d2c8b1800f38e8f3a469fa5bb3e22"></a><!-- doxytag: member="infact::VarMap&lt; vector&lt; T &gt; &gt;::ReadAndSet" ref="ab04d2c8b1800f38e8f3a469fa5bb3e22" args="(const string &amp;varname, StreamTokenizer &amp;st)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classinfact_1_1_var_map.html">infact::VarMap</a>&lt; vector&lt; T &gt; &gt;::<a class="el" href="classinfact_1_1_var_map_3_01vector_3_01_t_01_4_01_4.html#ab04d2c8b1800f38e8f3a469fa5bb3e22">ReadAndSet</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classinfact_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;&#160;</td>
          <td class="paramname"><em>st</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reads the next value (primitive or spec for constructing a <a class="el" href="classinfact_1_1_factory.html">Factory</a>-constructible object) from the specified stream tokenizer and sets the specified variable to that value. </p>

<p>Implements <a class="el" href="classinfact_1_1_var_map_base.html#ac1c1fe930d681a601f4f281876fa5f63">infact::VarMapBase</a>.</p>

<p>Definition at line <a class="el" href="environment_8h_source.html#l00459">459</a> of file <a class="el" href="environment_8h_source.html">environment.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/infact/<a class="el" href="environment_8h_source.html">environment.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Apr 23 2014 10:07:53 for InFact by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
